package cn.xspace.module.other.activity;

import android.view.View;
import android.widget.ListView;

import com.xspace.android.xafcommon.base.BaseActivity;

import cn.xspace.app.view.TitleBar;
import cn.xspace.module.other.R;
import cn.xspace.module.other.adapter.SearchAdapter;

public class QuestionModuleDetailAct extends BaseActivity {

    private ListView listView;
    private TitleBar titleBar;
    private String title;

    @Override
    protected void initView() {
        setContentView(R.layout.activity_question_module_detail);
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initFindViewById() {
        listView = (ListView) findViewById(R.id.question_module_listview);
        titleBar = (TitleBar) findViewById(R.id.setting_title_bar);
    }

    @Override
    protected void getIntentData() {
        title = getIntent().getStringExtra("title");
    }

    @Override
    protected void initEvent() {
        titleBar.setTitle(title);
        titleBar.setLeftLayoutClickListener(listener);
        titleBar.setRightLayoutClickListener(listener);
        listView.setAdapter(new SearchAdapter(this));
    }

    View.OnClickListener listener = new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            finish();
        }
    };
}
